import service from '@/utils/request'
// @Tags EvidenceTy
// @Summary 创建证据类型管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.EvidenceTy true "创建证据类型管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /ET/createEvidenceTy [post]
export const createEvidenceTy = (data) => {
  return service({
    url: '/ET/createEvidenceTy',
    method: 'post',
    data
  })
}

// @Tags EvidenceTy
// @Summary 删除证据类型管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.EvidenceTy true "删除证据类型管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ET/deleteEvidenceTy [delete]
export const deleteEvidenceTy = (params) => {
  return service({
    url: '/ET/deleteEvidenceTy',
    method: 'delete',
    params
  })
}

// @Tags EvidenceTy
// @Summary 批量删除证据类型管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除证据类型管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ET/deleteEvidenceTy [delete]
export const deleteEvidenceTyByIds = (params) => {
  return service({
    url: '/ET/deleteEvidenceTyByIds',
    method: 'delete',
    params
  })
}

// @Tags EvidenceTy
// @Summary 更新证据类型管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.EvidenceTy true "更新证据类型管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /ET/updateEvidenceTy [put]
export const updateEvidenceTy = (data) => {
  return service({
    url: '/ET/updateEvidenceTy',
    method: 'put',
    data
  })
}

// @Tags EvidenceTy
// @Summary 用id查询证据类型管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.EvidenceTy true "用id查询证据类型管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /ET/findEvidenceTy [get]
export const findEvidenceTy = (params) => {
  return service({
    url: '/ET/findEvidenceTy',
    method: 'get',
    params
  })
}

// @Tags EvidenceTy
// @Summary 分页获取证据类型管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取证据类型管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /ET/getEvidenceTyList [get]
export const getEvidenceTyList = (params) => {
  return service({
    url: '/ET/getEvidenceTyList',
    method: 'get',
    params
  })
}

// @Tags EvidenceTy
// @Summary 不需要鉴权的证据类型管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.EvidenceTySearch true "分页获取证据类型管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /ET/getEvidenceTyPublic [get]
export const getEvidenceTyPublic = () => {
  return service({
    url: '/ET/getEvidenceTyPublic',
    method: 'get',
  })
}
